//
//  HXCatagoryFirstModel.m
//  GiftSay
//
//  Created by laohu on 16/1/8.
//  Copyright © 2016年 liyinkai. All rights reserved.
//

#import "HXCatagoryFirstModel.h"

@implementation HXCatagoryFirstModel
- (instancetype)init {
    self = [super init];
    if (self) {
        
    }
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"channels"]) {
        NSMutableArray *array = [NSMutableArray arrayWithCapacity:0];
        for (NSDictionary *dic in value) {
            HXCatagorySecondModel *secondModel = [[HXCatagorySecondModel alloc] init];
            [secondModel setValuesForKeysWithDictionary:dic];
            [array addObject:secondModel];
//            NSLog(@"🐱%@", secondModel.name);
        }
        self.channel = [NSArray arrayWithArray:array];
        
        
    }
}

- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}
@end
